﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="MainMenu.ascx.cs" Inherits="Indochinaodyssey.UserControl.MainMenu.WebUserControl1" %>
<%@ Register Src="../Slide/ucHotToursSlide.ascx" TagName="ucHotToursSlide" TagPrefix="uc1" %>
<script type="text/javascript">
    function display_visible() {
        $(this).find('.menu-item').show();
    }
    function display_hidden() {
        $(this).find('.menu-item').hide();
    }
    $(document).ready(

		function () {
		    /*$("div.menu-item").hide();*/
		    $(".link").mouseover(display_visible);
		    $(".link").mouseout(display_hidden);
		})
</script><uc1:ucHotToursSlide ID="ucHotToursSlide1" runat="server" />
<div class="home-view">
    <div id="main-menu-place">
        <ul>
            <asp:DataList ID="DataList1" runat="server" DataKeyField="ID" DataSourceID="sdsTypeCruises"
                Width="100%">
                <ItemTemplate>
                    <li class="link"><a href="#">
                        <%# Eval("TenTheLoai") %></a>
                        <div class="menu-item link">
                            <table border="0" cellpadding="0" cellspacing="0" width="100%">
                                <tr>
                                    <td height="15">
                                        <table width="100%" border="0" cellpadding="0" cellspacing="0">
                                            <tr>
                                                <td height="15" width="5" >
                                                    <img src="styles/images/1.png" width="5" height="15" />
                                                </td>
                                                    <td height="15" background="styles/Images/2.png">
                                                    <img src="styles/images/null.png" width="20" height="15" />
                                                </td>
                                         
                                                <td height="15" width="5">
                                                    <img src="styles/images/4.png" width="5" height="15" />
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <table width="100%" border="0" cellpadding="0" cellspacing="0">
                                            <tr>
                                                <td width="5" background="styles/Images/9.png">
                                                    <img src="styles/images/null.png" width="5" />
                                                </td>
                                                <td bgcolor="#e9f4f4">
                                                    <asp:DataList ID="DataList2" runat="server" DataKeyField="ID" DataSourceID="sdsCruisesOfType"
                                                        Width="100%">
                                                        <ItemTemplate>
                                                            <div class="main-menu-item">
                                                                <a href='<%# "~/CruisesDetail.aspx?ID=" + Eval("ID") %>' runat="server" style="color: #666666;
                                                                    font-size: 13px;">
                                                                    <%# Eval("TieuDe") %></a></div>
                                                            <br />
                                                        </ItemTemplate>
                                                    </asp:DataList>
                                                    <asp:SqlDataSource ID="sdsCruisesOfType" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
                                                        SelectCommand="SELECT [ID], [TieuDe] FROM [tblTour] WHERE ([TheLoaiID] = @TheLoaiID)">
                                                        <SelectParameters>
                                                            <asp:ControlParameter ControlID="hfID" Name="TheLoaiID" PropertyName="Value" Type="Int32" />
                                                        </SelectParameters>
                                                    </asp:SqlDataSource>
                                                </td>
                                                <td width="5" background="styles/Images/5.png">
                                                    <img src="styles/images/null.png" width="5" />
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                                <tr>
                                    <td height="5">
                                        <table width="100%" border="0" cellpadding="0" cellspacing="0">
                                            <tr>
                                                <td width="5" height="5">
                                                    <img src="styles/images/8.png" width="5" height="5" />
                                                </td>
                                                <td height="5" background="styles/Images/7.png">
                                                    <img src="styles/images/null.png" height="5" width="5" />
                                                </td>
                                                <td width="5" height="5">
                                                    <img src="styles/images/6.png" width="5" height="5" />
                                                    <asp:HiddenField ID="hfID" runat="server" Value='<%# Eval("ID") %>' />
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                            </table>
                        </div>
                    </li>
                </ItemTemplate>
            </asp:DataList>
        </ul>
    </div>
</div>
<asp:SqlDataSource ID="sdsTypeCruises" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
    SelectCommand="SELECT TOP 4 [ID], [TenTheLoai] FROM [tblTheLoai]"></asp:SqlDataSource>
